package com.pan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pan.dao.LoginRegisterDao;
import com.pan.domain.User;
import com.pan.service.ILoginRegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginRegisterImpl extends ServiceImpl<LoginRegisterDao,User> implements ILoginRegisterService {
    @Autowired
    private LoginRegisterDao loginRegisterDao;

    @Override
    public User login(String username, String password) {
        return loginRegisterDao.login(username,password);
    }

    @Override
    public User selectByUsername(String username) {
        return loginRegisterDao.selectByUsername(username);
    }

    @Override
    public User selectByName(String name) {
        return loginRegisterDao.selectByName(name);
    }

    @Override
    public User selectByEmail(String email) {
        return loginRegisterDao.selectByEmail(email);
    }


    @Override
    public List<User> getSome() {
        return null;
    }
}
